package com.relytosoft.mizar.analyze.algorithm.base.feign.bitman;

import com.relytosoft.mizar.analyze.algorithm.base.config.BitmanFeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 结构化业务
 *
 * @Author SunLi
 * @Date: 2022/5/13 11:07
 * @Version 1.0
 */
@FeignClient(url = "${relytosoft.mizar.analyze.openApiUrl}", name = "Analyze-Structure", configuration = BitmanFeignInterceptor.class)
public interface StructureFeignService {
    @PostMapping("/api/algorithm/structure/task")
    String createTask(@RequestBody String bodys);

    @GetMapping("/api/algorithm/structure/task/stop")
    String stopTask(@RequestParam(name = "ParamsJson") String paramsJson);

    @PostMapping("/api/algorithm/structure/feature/extraction")
    String featureExtraction(@RequestBody String bodys);
}
